package genetischeralgorithmus;
import java.util.*;
import java.awt.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Dominik
 */
public class Entity {
    
protected int age;
protected int[] path;
protected int pathPosition;




public Entity(int pointCount){
path = new int[pointCount];
age=0;
pathPosition =0;

}


public void add(int place){
    path[pathPosition]=place;
    pathPosition++;
}

public void setPath(int[] path){
    this.path = path;
}

public int[] getPath(){
    return path;
}

public String getPathString(){
    String back = "";
    for (int i=0; i<path.length;i++){
        back = back + path[i]+ "-";
    }
    return back;
}

public int getAge() {
    return age;
}

public void setAge(int age) {
        this.age = age;
    }

public int getPathPosition() {
    return pathPosition;
}

public void setPathPosition(int pathPosition) {
        this.pathPosition = pathPosition;
    }

public void setPlace(int place, int index ){
    path[index] = place;
}










}
